//
//  UIImage+SLPBHelper.m
//  SLPhotoBrowser
//
//  Created by S_LINE on 2022/5/23.
//  Copyright © 2022 S_LINE. All rights reserved.
//

#import "UIImage+SLPBHelper.h"

@implementation UIImage (SLPBHelper)

+ (UIImage *)slpb_imageNamed:(NSString *)imageName {
    NSString *bundlePath = [[NSBundle bundleForClass:NSClassFromString(@"SLPhotoBrowserController")] pathForResource:@"slpb_resource" ofType:@"bundle"];
    NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
    return [UIImage imageNamed:imageName inBundle:bundle compatibleWithTraitCollection:nil];
}

@end
